package day20.pack2;

public class Test {
    public static void main(String[] args) {
        Counter counter = new Counter();
        Runnable r1 = () -> {
            while(true)  counter.increment();
        };
        Runnable r2 = () -> {
            while(true)  counter.decrement();
        };
        new Thread(r1).start();
        new Thread(r2).start();


    }
}
